(XTring_bell): Do nothing if x_current_connection is 0.
authorRichard M. Stallman <rms@gnu.org>
Sat, 29 May 1993 05:59:09 +0000 (05:59 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 29 May 1993 05:59:09 +0000 (05:59 +0000)
src/xterm.c

index 033b1da5685b2a41689754b67c299121efc57b2b..60f4c8850fceef6024d64cdfc21fe3b0212631b3 100644 (file)
@@ -830,6 +830,9 @@ XTflash (f)
 
 XTring_bell ()
 {
+  if (x_current_display == 0)
+    return;
+
 #if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT)
   if (visible_bell)
     XTflash (selected_frame);